# FROM rabbitmq:3.8.27-management
FROM rabbitmq:3.11.21-management
# rabbitmq:3.11.21-management
MAINTAINER xiaodonghong

# 添加插件到指定目录 可按照此方式自行扩展其他插件
ADD ./rabbitmq_delayed_message_exchange-3.11.1.ez /plugins

# 开启管理界面插件
RUN rabbitmq-plugins enable rabbitmq_management
# 开启延迟队列插件
RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange

ENTRYPOINT ["rabbitmq-server"]